package com.chixing.service;


import com.chixing.commons.ServerResponce;
import com.chixing.pojo.Coupon;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaotao
 * @since 2022-10-17
 */
public interface ICouponService {
    public Coupon getById(Integer couponId);
    public ServerResponce insertCoupon(Coupon coupon);
    public Map<String, Object> selectByIdCoupon(Integer couponId);
    public ServerResponce reduceCoupon(Integer couponId,Integer count);
    public List<Coupon> getAll();
    public Integer updataCoupon(Coupon coupon);
}
